import React from "react";
import { Context1 } from "./App";
class Grandchildren extends React.Component {
  render() {
    return (
      <div>
        <div>grandchildren </div>
        <Context1.Consumer>
          {(value) => {
            return <div> 祖先组件传递过来的数据：{value}</div>;
          }}
        </Context1.Consumer>
      </div>
    );
  }
}

export default Grandchildren;
